package com.anfeng.cms.domain.emp;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴朋
 * @since 2019-07-15
 */
@TableName("af_employee_photo")
public class AfEmployeePhoto extends Model<AfEmployeePhoto> {

    private static final long serialVersionUID = 1L;

    /**
     * 图片id
     */
	private String id;
    /**
     * 员工id
     */
	@TableField("emp_id")
	private String empId;
	/**
	 * 访客id 如果是访客 该字段不为null
	 */
	@TableField("guest_id")
	private String guestId;
    /**
     * 图片名
     */
	private String name;
    /**
     * 图片路径
     */
	private String path;
    /**
     * 数据状态（1 正常 2 逻辑删除）
     */
	private Integer state;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 修改时间
     */
	@TableField("modified_time")
	private Date modifiedTime;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEmpId() {
		return empId;
	}

	public void setEmpId(String empId) {
		this.empId = empId;
	}

	public String getGuestId() {
		return guestId;
	}

	public void setGuestId(String guestId) {
		this.guestId = guestId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifiedTime() {
		return modifiedTime;
	}

	public void setModifiedTime(Date modifiedTime) {
		this.modifiedTime = modifiedTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("AfEmployeePhoto{");
		sb.append("id='").append(id).append('\'');
		sb.append(", empId='").append(empId).append('\'');
		sb.append(", guestId='").append(guestId).append('\'');
		sb.append(", name='").append(name).append('\'');
		sb.append(", path='").append(path).append('\'');
		sb.append(", state=").append(state);
		sb.append(", createTime=").append(createTime);
		sb.append(", modifiedTime=").append(modifiedTime);
		sb.append('}');
		return sb.toString();
	}
}
